﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MVVMLightLesson.Base
{
    /// <summary>
    /// 属性注入跟参数都可以用这个Attribute
    /// </summary>
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter)]
    public class DependyAttribute : Attribute
    {
        public DependyAttribute() { }

        public string Token { get; set; }
        public DependyAttribute(string token = "")
        {
            Token = token;
        }
    }
}
